package 简单输入模板;

import java.io.*;
import java.util.Scanner;

/**
 * 这两句要背的
 * BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
 * String line = in.readLine();
 */
public class MainClass {

    public void 多行输入() throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String line = in.readLine();
        int n = Integer.valueOf(line);// 读取数据行数

        // 循环处理数据
        for (int i = 0; i < n; i++) {
            line = in.readLine();
            String[] ss = line.split(" ");
            // TODO
        }

    }


    public void 输入一行空格隔开数据() throws IOException {
        BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
        String line = in.readLine();
        String[] data = line.split(" ");

        int dataInt = Integer.valueOf(data[0]);
        long dataLong = Long.valueOf(data[0]);
        double dataDouble = Double.valueOf(data[0]);
    }

    public void Scanner作为输入() throws IOException {
        Scanner sc = new Scanner(System.in);
        // 回车、空格都当做是输入的结束哟
        int a = sc.nextInt();
        int b = sc.nextInt();

    }





    /**
     * 自己整文件输入
     *
     * @param args
     * @throws IOException
     */
    public static void main(String[] args) throws IOException {
        String filePath = "第168场.E:\\idea-project\\leetcode\\race-temp\\src\\main\\java\\简单输入模板\\test1.txt";
        FileInputStream is = new FileInputStream(new File(filePath));
        BufferedReader in = new BufferedReader(new InputStreamReader(is));
        String line;

        // 将Playground中while的那段代码copy过来
        //TODO 比赛是没有Playground的

        while ((line = in.readLine()) != null) {
            System.out.println(line);
        }
    }





    class Solution {

    }
}
